package com.test002.util;

import java.util.ArrayList;
import java.util.List;

import com.test002.entity.Student1;
import com.test002.entity.TestExcel;

public class BeanUtil {
	public static List<Student1> listToBean(List<String[]> args){
		int i =1;
		List<Student1> studentList = new ArrayList<Student1>();
		for(String[] temp:args){
			Student1 student = new Student1();
			student.setIdCard(temp[0]);
			student.setName(temp[1]);
			student.setSex(temp[2]);
			studentList.add(student);
		}
		return studentList;
	}
//	public static List<TestExcel> listToBean(List<String[]> args){
//		int i =1;
//		List<TestExcel> testList = new ArrayList<TestExcel>();
//		for(String[] temp:args){
//			TestExcel test = TestExcel.toTestBean(temp);
//			testList.add(test);
//		}
//		return testList;
//	}	
}
